import { createRouter, createWebHistory } from "vue-router";

const routes = [
    {
        path:'/home',
        name:'Home',
        component:()=>import('./components/caijiOption.vue'),
        children:[
            {
                path:'/',
                name:'Caiji',
                component:()=>import('./components/Caiji.vue')
            },
            {
                path:'/luyouyi',
                name:'luyouyi',
                component:()=>import('./components/luyouyi.vue')
            }
        ]
    }
];

const router = createRouter({
    history:createWebHistory(),
    routes
});

export default router;